import socialApi from "@/api/declaration/socialApi"
import httpRequest from "@/config/axios/httpRequest"
import { SocialClientModel } from "@/models/social/SocialClientModel"




// 查询社交客户端列表
export const getSocialClientPage = async (params) => {
  return await httpRequest.get<SocialClientModel[]>(socialApi.GetSocialClientPage, { params })
}

// 查询社交客户端详情
export const getSocialClient = async (id: number) => {
  return await httpRequest.get<SocialClientModel>(socialApi.GetSocialClient, { params: { id } })
}

// 新增社交客户端
export const createSocialClient = async (data: SocialClientModel) => {
  return await httpRequest.post(socialApi.CreateSocialClient, data)
}

// 修改社交客户端
export const updateSocialClient = async (data: SocialClientModel) => {
  return await httpRequest.put(socialApi.UpdateSocialClient, data)
}

// 删除社交客户端
export const deleteSocialClient = async (id: number) => {
  return await httpRequest.delete(socialApi.DeleteSocialClient, { params: { id } })
}
